import { http } from '../utils/httpRequest';


/* 获取聊天信息*/
export const GetMessage = () => {
	return http({
		method: 'GET',
		url: '/wx/v1/im/pushMessage',

	});
};

/* 新增粉丝*/
export const GetnewFollowerInfo = () => {
	return http({
		method: 'GET',
		url: '/wx/v1/im/newFollowerInfo',

	});
};

/* 互动消息*/
export const GetInteractionInfo = () => {
	return http({
		method: 'GET',
		url: '/wx/v1/im/pushInteractionInfo',

	});
};

/* 获取根据聊天室ID和对方ID获取未读消息*/
export const PostunreadMessages = (data) => {
	return http({
		method: 'POST',
		url: '/wx/v1/im/unreadMessages',
		data,
	});
};

/* 获取聊天室列表*/
export const GetchatRooms = () => {
	return http({
		method: 'GET',
		url: '/wx/v1/im/chatRooms',

	});
};